<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>post</title>
		<script src="../js/axios.js"></script>
	</head>
	<body>
		<h1>post</h1>
		<script>
			//指定公共的请求前缀
			axios.defaults.baseURL="http://localhost:9000"
			let url='/ajax/saveUser'
			let user={
				name: '祖国母亲',
				age: 72,
				sex: '女'
			}
			axios.post(url,user)
				 .then(function(promise){
					 console.log(promise.data)
				 })
				 
		</script>
	</body>
</html>
